package org.example.cloudapply.repository;


import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.cloudapply.entity.Admin;

@Mapper
public interface AdminRepository {
    @Select("select * from admins where username=#{username}")
    Admin findByUserName(String username);
    @Insert("insert into admins(username,password_hash) values(#{username},#{md5string})")
    void add(@Param("username") String username, @Param("md5string") String md5string);
}